Skip to content

code from gotatun#3

Open
Small-Ku wants to merge 3 commits intoWatfaq:masterfrom
Small-Ku:chore/gotatun
Open

code from gotatun#3
Small-Ku wants to merge 3 commits intoWatfaq:masterfrom
Small-Ku:chore/gotatun

Conversation

@Small-Ku
Copy link
Copy Markdown

@Small-Ku Small-Ku commented Jan 6, 2026

nothing fancy, just a approach that totally unrelated to the issue at the end but I did do this when investigating Watfaq/clash-rs#958

@ibigbug
Copy link
Copy Markdown
Member

ibigbug commented Jan 10, 2026

the original code was just extracted from the cloudflare boring tun and your change seems huge - what does it exactly do could you add a bit context?

@ibigbug
Copy link
Copy Markdown
Member

ibigbug commented Jan 10, 2026

and why it's better

@Small-Ku
Copy link
Copy Markdown
Author

Small-Ku commented Jan 10, 2026

this code also just extracted from gotatun by mullvad, which forked from boringtun. actually I just extracted it to help me investigate what Watfaq/clash-rs#958 is happening in a more readable way for me. Just end up seems it is not needed for the bug fix. So, it should not bring much benefits that different from the original code.

The changes would be fewer manual lifetime management and the use of zero-copy packet structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants